<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>网络安全态势综合分析报告</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.8/dist/chart.umd.min.js"></script>
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#2E95F8',
                        secondary: '#1B64AA',
                        dark: '#060606',
                        darker: '#09162F',
                        danger: '#FF4D4F',
                        warning: '#FFC107',
                        success: '#52C41A',
                        info: '#1890FF',
                        'card-bg': 'rgba(8, 26, 48, 0.8)',
                    },
                    fontFamily: {
                        inter: ['Inter', 'sans-serif'],
                    },
                    boxShadow: {
                        'card': '0 4px 12px rgba(0, 0, 0, 0.15)',
                        'card-hover': '0 8px 24px rgba(0, 0, 0, 0.25)',
                    }
                },
            }
        }
    </script>
    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }
            .risk-indicator {
                @apply inline-block w-3 h-3 rounded-full mr-2;
            }
            .card-transition {
                @apply transition-all duration-300 ease-in-out;
            }
            .stat-card {
                @apply bg-card-bg border border-secondary rounded-lg p-5 card-transition hover:shadow-card-hover hover:scale-[1.02];
            }
            .stat-value {
                @apply text-2xl font-bold text-white;
            }
            .stat-label {
                @apply text-gray-400 text-sm mt-1;
            }
            .trend-up {
                @apply text-success flex items-center;
            }
            .trend-down {
                @apply text-danger flex items-center;
            }
            .risk-high {
                @apply text-danger;
            }
            .risk-medium {
                @apply text-warning;
            }
            .risk-low {
                @apply text-success;
            }
            .chart-container {
                @apply h-[300px] w-full;
            }
        }
    </style>
</head>
<body class="bg-dark text-gray-200 font-inter">
    <div class="max-w-7xl mx-auto px-4 py-6">
        <!-- 头部 -->
        <header class="bg-darker rounded-xl p-6 mb-8 shadow-lg">
            <h1 class="text-[clamp(1.75rem,5vw,2.5rem)] font-bold text-primary mb-2">网络安全态势综合分析报告</h1>
            <p class="text-gray-400">深入分析当前网络安全态势，识别潜在风险并提供防护建议</p>
        </header>

        <main>
            <!-- 报告摘要 -->
            <section class="mb-8">
                <div class="stat-card">
                    <h2 class="text-xl font-semibold mb-4 flex items-center">
                        <i class="fa fa-file-alt text-primary mr-2"></i> 报告摘要
                    </h2>
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                        <div class="bg-gradient-to-r from-red-900/30 to-red-800/20 p-4 rounded-lg border border-red-700/30">
                            <h3 class="text-lg font-medium mb-3">
                                整体安全态势评级：
                                <span class="risk-high font-bold text-xl">高危</span>
                                <span class="ml-2 inline-block px-2 py-1 bg-red-600/20 text-red-300 rounded text-xs">需紧急处理</span>
                            </h3>
                            <ul class="list-disc pl-5 space-y-2 text-gray-300">
                                <li>攻击类型集中度高</li>
                                <li>攻击量呈指数级增长</li>
                                <li>关键资产暴露面显著增加</li>
                            </ul>
                        </div>
                        <div class="grid grid-cols-2 sm:grid-cols-4 gap-3">
                            <div class="stat-card p-3 text-center">
                                <div class="stat-value text-primary">1582</div>
                                <div class="stat-label">总攻击次数</div>
                            </div>
                            <div class="stat-card p-3 text-center">
                                <div class="stat-value text-danger">70.3%</div>
                                <div class="stat-label">高危攻击占比</div>
                            </div>
                            <div class="stat-card p-3 text-center">
                                <div class="stat-value text-warning">5</div>
                                <div class="stat-label">受影响资产</div>
                            </div>
                            <div class="stat-card p-3 text-center">
                                <div class="stat-value text-info">1738</div>
                                <div class="stat-label">预测攻击量(5月15日)</div>
                            </div>
                        </div>
                    </div>
                </div>
            </section>

            <!-- 核心风险 -->
            <section class="mb-8">
                <div class="stat-card">
                    <h2 class="text-xl font-semibold mb-4 flex items-center">
                        <i class="fa fa-exclamation-triangle text-warning mr-2"></i> 核心风险
                    </h2>
                    <div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
                        <div class="lg:col-span-2">
                            <div class="chart-container">
                                <canvas id="coreRisksChart"></canvas>
                            </div>
                        </div>
                        <div class="overflow-x-auto">
                            <table class="min-w-full divide-y divide-gray-700">
                                <thead>
                                    <tr>
                                        <th class="px-4 py-3 bg-gray-800/50 text-left text-xs font-medium text-gray-400 uppercase tracking-wider rounded-tl-lg">风险类型</th>
                                        <th class="px-4 py-3 bg-gray-800/50 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">占比/数值</th>
                                        <th class="px-4 py-3 bg-gray-800/50 text-left text-xs font-medium text-gray-400 uppercase tracking-wider rounded-tr-lg">趋势</th>
                                    </tr>
                                </thead>
                                <tbody class="divide-y divide-gray-700">
                                    <tr class="hover:bg-gray-800/30 transition-colors">
                                        <td class="px-4 py-3 whitespace-nowrap">
                                            <div class="flex items-center">
                                                <span class="risk-indicator bg-danger"></span>
                                                权限提升类攻击(T1548)
                                            </div>
                                        </td>
                                        <td class="px-4 py-3 whitespace-nowrap">75.1%</td>
                                        <td class="px-4 py-3 whitespace-nowrap trend-up">
                                            <i class="fa fa-arrow-up mr-1"></i> 斐波那契式增长(日均61.8%)
                                        </td>
                                    </tr>
                                    <tr class="hover:bg-gray-800/30 transition-colors">
                                        <td class="px-4 py-3 whitespace-nowrap">
                                            <div class="flex items-center">
                                                <span class="risk-indicator bg-warning"></span>
                                                CentOS Linux 8.2.2004风险值
                                            </div>
                                        </td>
                                        <td class="px-4 py-3 whitespace-nowrap">5031</td>
                                        <td class="px-4 py-3 whitespace-nowrap trend-up">
                                            <i class="fa fa-arrow-up mr-1"></i> Windows 8系统的11.8倍
                                        </td>
                                    </tr>
                                    <tr class="hover:bg-gray-800/30 transition-colors">
                                        <td class="px-4 py-3 whitespace-nowrap">
                                            <div class="flex items-center">
                                                <span class="risk-indicator bg-info"></span>
                                                IP地址缺失资产
                                            </div>
                                        </td>
                                        <td class="px-4 py-3 whitespace-nowrap">80%</td>
                                        <td class="px-4 py-3 whitespace-nowrap trend-down">
                                            <i class="fa fa-arrow-down mr-1"></i> 溯源能力受限
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </section>

            <!-- 资产态势分析 -->
            <section class="mb-8">
                <div class="stat-card">
                    <h2 class="text-xl font-semibold mb-4 flex items-center">
                        <i class="fa fa-server text-info mr-2"></i> 资产态势分析
                    </h2>
                    <div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
                        <div>
                            <h3 class="text-lg font-medium mb-3 flex items-center">
                                <i class="fa fa-chart-pie text-primary mr-2"></i> 操作系统风险集中度
                            </h3>
                            <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4">
                                <div class="chart-container">
                                    <canvas id="osRiskChart"></canvas>
                                </div>
                                <div class="overflow-x-auto">
                                    <table class="min-w-full divide-y divide-gray-700">
                                        <thead>
                                            <tr>
                                                <th class="px-4 py-3 bg-gray-800/50 text-left text-xs font-medium text-gray-400 uppercase tracking-wider rounded-tl-lg">操作系统</th>
                                                <th class="px-4 py-3 bg-gray-800/50 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">攻击命中次数</th>
                                                <th class="px-4 py-3 bg-gray-800/50 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">占比</th>
                                                <th class="px-4 py-3 bg-gray-800/50 text-left text-xs font-medium text-gray-400 uppercase tracking-wider rounded-tr-lg">风险值</th>
                                            </tr>
                                        </thead>
                                        <tbody class="divide-y divide-gray-700">
                                            <tr class="hover:bg-gray-800/30 transition-colors">
                                                <td class="px-4 py-3 whitespace-nowrap">CentOS Linux 8.2.2004</td>
                                                <td class="px-4 py-3 whitespace-nowrap">1677</td>
                                                <td class="px-4 py-3 whitespace-nowrap">73.8%</td>
                                                <td class="px-4 py-3 whitespace-nowrap">5031</td>
                                            </tr>
                                            <tr class="hover:bg-gray-800/30 transition-colors">
                                                <td class="px-4 py-3 whitespace-nowrap">Windows 8系统(合计)</td>
                                                <td class="px-4 py-3 whitespace-nowrap">429</td>
                                                <td class="px-4 py-3 whitespace-nowrap">18.9%</td>
                                                <td class="px-4 py-3 whitespace-nowrap">429</td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                        <div>
                            <h3 class="text-lg font-medium mb-3 flex items-center">
                                <i class="fa fa-exclamation-circle text-warning mr-2"></i> 资产信息缺失影响
                            </h3>
                            <div class="bg-gray-800/30 rounded-lg p-4 border border-gray-700/50">
                                <ul class="list-disc pl-5 space-y-3 text-gray-300">
                                    <li class="flex items-start">
                                        <i class="fa fa-circle-exclamation text-danger mt-1 mr-2"></i>
                                        <span>5个受影响资产中仅1个(k8s-master1)提供IP地址</span>
                                    </li>
                                    <li class="flex items-start">
                                        <i class="fa fa-circle-exclamation text-danger mt-1 mr-2"></i>
                                        <span>3个Windows 8实例均未提供网络标识信息</span>
                                    </li>
                                    <li class="flex items-start">
                                        <i class="fa fa-circle-exclamation text-warning mt-1 mr-2"></i>
                                        <span>IP地址缺失导致80%的攻击事件溯源困难</span>
                                    </li>
                                    <li class="flex items-start">
                                        <i class="fa fa-circle-exclamation text-warning mt-1 mr-2"></i>
                                        <span>关键资产业务角色信息不明确，防护优先级难以确定</span>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </section>

            <!-- 告警态势分析 -->
            <section class="mb-8">
                <div class="stat-card">
                    <h2 class="text-xl font-semibold mb-4 flex items-center">
                        <i class="fa fa-bell text-warning mr-2"></i> 告警态势分析
                    </h2>
                    <div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
                        <div>
                            <h3 class="text-lg font-medium mb-3 flex items-center">
                                <i class="fa fa-chart-bar text-primary mr-2"></i> 攻击类型分布
                            </h3>
                            <div class="chart-container">
                                <canvas id="attackTypesChart"></canvas>
                            </div>
                            <div class="overflow-x-auto mt-4">
                                <table class="min-w-full divide-y divide-gray-700">
                                    <thead>
                                        <tr>
                                            <th class="px-4 py-3 bg-gray-800/50 text-left text-xs font-medium text-gray-400 uppercase tracking-wider rounded-tl-lg">攻击类型</th>
                                            <th class="px-4 py-3 bg-gray-800/50 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">命中次数</th>
                                            <th class="px-4 py-3 bg-gray-800/50 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">占比</th>
                                            <th class="px-4 py-3 bg-gray-800/50 text-left text-xs font-medium text-gray-400 uppercase tracking-wider rounded-tr-lg">威胁等级</th>
                                        </tr>
                                    </thead>
                                    <tbody class="divide-y divide-gray-700">
                                        <tr class="hover:bg-gray-800/30 transition-colors">
                                            <td class="px-4 py-3 whitespace-nowrap">T1548(权限提升)</td>
                                            <td class="px-4 py-3 whitespace-nowrap">1582</td>
                                            <td class="px-4 py-3 whitespace-nowrap">70.3%</td>
                                            <td class="px-4 py-3 whitespace-nowrap">
                                                <span class="px-2 py-1 bg-red-600/20 text-red-300 rounded text-xs">高危</span>
                                            </td>
                                        </tr>
                                        <tr class="hover:bg-gray-800/30 transition-colors">
                                            <td class="px-4 py-3 whitespace-nowrap">T1548.002(权限提升-子技术)</td>
                                            <td class="px-4 py-3 whitespace-nowrap">129</td>
                                            <td class="px-4 py-3 whitespace-nowrap">5.8%</td>
                                            <td class="px-4 py-3 whitespace-nowrap">
                                                <span class="px-2 py-1 bg-yellow-600/20 text-yellow-300 rounded text-xs">中危</span>
                                            </td>
                                        </tr>
                                        <tr class="hover:bg-gray-800/30 transition-colors">
                                            <td class="px-4 py-3 whitespace-nowrap">T1053(Linux At命令)</td>
                                            <td class="px-4 py-3 whitespace-nowrap">256</td>
                                            <td class="px-4 py-3 whitespace-nowrap">11.4%</td>
                                            <td class="px-4 py-3 whitespace-nowrap">
                                                <span class="px-2 py-1 bg-green-600/20 text-green-300 rounded text-xs">低危</span>
                                            </td>
                                        </tr>
                                        <tr class="hover:bg-gray-800/30 transition-colors">
                                            <td class="px-4 py-3 whitespace-nowrap">T1218(可疑脚本执行)</td>
                                            <td class="px-4 py-3 whitespace-nowrap">164</td>
                                            <td class="px-4 py-3 whitespace-nowrap">7.3%</td>
                                            <td class="px-4 py-3 whitespace-nowrap">
                                                <span class="px-2 py-1 bg-green-600/20 text-green-300 rounded text-xs">低危</span>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                        <div>
                            <h3 class="text-lg font-medium mb-3 flex items-center">
                                <i class="fa fa-line-chart text-info mr-2"></i> 攻击量时间趋势
                            </h3>
                            <div class="chart-container">
                                <canvas id="attackTrendChart"></canvas>
                            </div>
                            <div class="overflow-x-auto mt-4">
                                <table class="min-w-full divide-y divide-gray-700">
                                    <thead>
                                        <tr>
                                            <th class="px-4 py-3 bg-gray-800/50 text-left text-xs font-medium text-gray-400 uppercase tracking-wider rounded-tl-lg">日期</th>
                                            <th class="px-4 py-3 bg-gray-800/50 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">攻击量</th>
                                            <th class="px-4 py-3 bg-gray-800/50 text-left text-xs font-medium text-gray-400 uppercase tracking-wider rounded-tr-lg">环比增长</th>
                                        </tr>
                                    </thead>
                                    <tbody class="divide-y divide-gray-700">
                                        <tr class="hover:bg-gray-800/30 transition-colors">
                                            <td class="px-4 py-3 whitespace-nowrap">5月10日</td>
                                            <td class="px-4 py-3 whitespace-nowrap">44</td>
                                            <td class="px-4 py-3 whitespace-nowrap">-</td>
                                        </tr>
                                        <tr class="hover:bg-gray-800/30 transition-colors">
                                            <td class="px-4 py-3 whitespace-nowrap">5月11日</td>
                                            <td class="px-4 py-3 whitespace-nowrap">64</td>
                                            <td class="px-4 py-3 whitespace-nowrap trend-up">
                                                <i class="fa fa-arrow-up mr-1"></i> +45.5%
                                            </td>
                                        </tr>
                                        <tr class="hover:bg-gray-800/30 transition-colors">
                                            <td class="px-4 py-3 whitespace-nowrap">5月12日</td>
                                            <td class="px-4 py-3 whitespace-nowrap">70</td>
                                            <td class="px-4 py-3 whitespace-nowrap trend-up">
                                                <i class="fa fa-arrow-up mr-1"></i> +9.4%
                                            </td>
                                        </tr>
                                        <tr class="hover:bg-gray-800/30 transition-colors">
                                            <td class="px-4 py-3 whitespace-nowrap">5月13日</td>
                                            <td class="px-4 py-3 whitespace-nowrap">605</td>
                                            <td class="px-4 py-3 whitespace-nowrap trend-up">
                                                <i class="fa fa-arrow-up mr-1"></i> +823%
                                            </td>
                                        </tr>
                                        <tr class="hover:bg-gray-800/30 transition-colors">
                                            <td class="px-4 py-3 whitespace-nowrap">5月14日</td>
                                            <td class="px-4 py-3 whitespace-nowrap">1086</td>
                                            <td class="px-4 py-3 whitespace-nowrap trend-up">
                                                <i class="fa fa-arrow-up mr-1"></i> +80%
                                            </td>
                                        </tr>
                                        <tr class="hover:bg-gray-800/30 transition-colors">
                                            <td class="px-4 py-3 whitespace-nowrap">
                                                <span class="text-blue-400">5月15日(预测)</span>
                                            </td>
                                            <td class="px-4 py-3 whitespace-nowrap text-blue-400">1738</td>
                                            <td class="px-4 py-3 whitespace-nowrap trend-up text-blue-400">
                                                <i class="fa fa-arrow-up mr-1"></i> +60%
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </section>

            <!-- 防护建议 -->
            <section class="mb-8">
                <div class="stat-card">
                    <h2 class="text-xl font-semibold mb-4 flex items-center">
                        <i class="fa fa-shield-alt text-success mr-2"></i> 防护建议
                    </h2>
                    <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
                        <div class="bg-gradient-to-br from-blue-900/20 to-blue-800/10 p-5 rounded-lg border border-blue-700/30 card-transition hover:scale-[1.02]">
                            <div class="text-3xl text-primary mb-3">
                                <i class="fa fa-database"></i>
                            </div>
                            <h3 class="text-lg font-semibold mb-2">资产信息完善与溯源能力提升</h3>
                            <ol class="list-decimal pl-5 space-y-2 text-gray-300">
                                <li>补充所有Windows 8实例的IP地址</li>
                                <li>完善资产数据库字段(IP、地理位置、业务角色等)</li>
                                <li>建立资产变更监控机制，及时更新资产信息</li>
                                <li>部署网络流量分析工具，提升攻击溯源能力</li>
                            </ol>
                        </div>
                        <div class="bg-gradient-to-br from-red-900/20 to-red-800/10 p-5 rounded-lg border border-red-700/30 card-transition hover:scale-[1.02]">
                            <div class="text-3xl text-danger mb-3">
                                <i class="fa fa-lock"></i>
                            </div>
                            <h3 class="text-lg font-semibold mb-2">权限提升攻击防御强化</h3>
                            <ol class="list-decimal pl-5 space-y-2 text-gray-300">
                                <li>定期扫描CentOS系统的SUID/SGID权限程序</li>
                                <li>部署基于文件哈希的完整性校验机制</li>
                                <li>限制root账户远程登录，采用密钥认证</li>
                                <li>实施最小权限原则，严格控制用户权限</li>
                            </ol>
                        </div>
                        <div class="bg-gradient-to-br from-yellow-900/20 to-yellow-800/10 p-5 rounded-lg border border-yellow-700/30 card-transition hover:scale-[1.02]">
                            <div class="text-3xl text-warning mb-3">
                                <i class="fa fa-windows"></i>
                            </div>
                            <h3 class="text-lg font-semibold mb-2">Windows 8系统风险缓解</h3>
                            <ol class="list-decimal pl-5 space-y-2 text-gray-300">
                                <li>禁用非必要的wscript/cscript执行权限</li>
                                <li>限制At命令(T1053)的使用范围</li>
                                <li>及时应用安全补丁，修复已知漏洞</li>
                                <li>部署行为监控系统，检测异常活动</li>
                            </ol>
                        </div>
                    </div>
                </div>
            </section>

            <!-- 附录 -->
            <section>
                <div class="stat-card">
                    <h2 class="text-xl font-semibold mb-4 flex items-center">
                        <i class="fa fa-book text-info mr-2"></i> 附录：关键数据计算说明
                    </h2>
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                        <div>
                            <h3 class="text-lg font-medium mb-3">风险值计算逻辑</h3>
                            <div class="bg-gray-800/30 rounded-lg p-4 border border-gray-700/50">
                                <p class="mb-3 text-gray-300">公式：风险值 = 命中次数 × 威胁等级系数</p>
                                <table class="min-w-full divide-y divide-gray-700">
                                    <thead>
                                        <tr>
                                            <th class="px-4 py-3 bg-gray-800/50 text-left text-xs font-medium text-gray-400 uppercase tracking-wider rounded-tl-lg">威胁等级</th>
                                            <th class="px-4 py-3 bg-gray-800/50 text-left text-xs font-medium text-gray-400 uppercase tracking-wider rounded-tr-lg">系数</th>
                                        </tr>
                                    </thead>
                                    <tbody class="divide-y divide-gray-700">
                                        <tr class="hover:bg-gray-800/30 transition-colors">
                                            <td class="px-4 py-3 whitespace-nowrap">高危</td>
                                            <td class="px-4 py-3 whitespace-nowrap">3</td>
                                        </tr>
                                        <tr class="hover:bg-gray-800/30 transition-colors">
                                            <td class="px-4 py-3 whitespace-nowrap">中危</td>
                                            <td class="px-4 py-3 whitespace-nowrap">2</td>
                                        </tr>
                                        <tr class="hover:bg-gray-800/30 transition-colors">
                                            <td class="px-4 py-3 whitespace-nowrap">低危</td>
                                            <td class="px-4 py-3 whitespace-nowrap">1</td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                        <div>
                            <h3 class="text-lg font-medium mb-3">攻击类型说明</h3>
                            <div class="bg-gray-800/30 rounded-lg p-4 border border-gray-700/50 space-y-3">
                                <div class="flex items-start">
                                    <div class="w-20 text-right mr-3">
                                        <span class="px-2 py-1 bg-red-600/20 text-red-300 rounded text-xs">T1548</span>
                                    </div>
                                    <div>
                                        <p class="font-medium">权限提升</p>
                                        <p class="text-sm text-gray-400">攻击者尝试获取更高权限的技术</p>
                                    </div>
                                </div>
                                <div class="flex items-start">
                                    <div class="w-20 text-right mr-3">
                                        <span class="px-2 py-1 bg-yellow-600/20 text-yellow-300 rounded text-xs">T1548.002</span>
                                    </div>
                                    <div>
                                        <p class="font-medium">权限提升-子技术</p>
                                        <p class="text-sm text-gray-400">利用漏洞或配置错误获取特权访问</p>
                                    </div>
                                </div>
                                <div class="flex items-start">
                                    <div class="w-20 text-right mr-3">
                                        <span class="px-2 py-1 bg-green-600/20 text-green-300 rounded text-xs">T1053</span>
                                    </div>
                                    <div>
                                        <p class="font-medium">Linux At命令</p>
                                        <p class="text-sm text-gray-400">利用at命令安排在指定时间执行命令</p>
                                    </div>
                                </div>
                                <div class="flex items-start">
                                    <div class="w-20 text-right mr-3">
                                        <span class="px-2 py-1 bg-green-600/20 text-green-300 rounded text-xs">T1218</span>
                                    </div>
                                    <div>
                                        <p class="font-medium">可疑脚本执行</p>
                                        <p class="text-sm text-gray-400">执行可能有害的脚本文件</p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        </main>

        <footer class="mt-12 text-center text-gray-500 text-sm">
            <p>© 2025 网络安全态势综合分析报告 | 生成时间: 2025年5月19日</p>
        </footer>
    </div>

    <script>
        // 初始化图表
        document.addEventListener('DOMContentLoaded', function() {
            // 核心风险图表
            const coreRisksCtx = document.getElementById('coreRisksChart').getContext('2d');
            new Chart(coreRisksCtx, {
                type: 'bar',
                data: {
                    labels: ['权限提升类攻击', 'CentOS风险值', 'IP地址缺失资产'],
                    datasets: [{
                        label: '风险值',
                        data: [75.1, 5031, 80],
                        backgroundColor: [
                            'rgba(255, 99, 132, 0.7)',
                            'rgba(255, 159, 64, 0.7)',
                            'rgba(54, 162, 235, 0.7)'
                        ],
                        borderColor: [
                            'rgb(255, 99, 132)',
                            'rgb(255, 159, 64)',
                            'rgb(54, 162, 235)'
                        ],
                        borderWidth: 1
                    }]
                },
                options: {
                    responsive: true,
                    maintainAspectRatio: false,
                    scales: {
                        y: {
                            beginAtZero: true,
                            grid: {
                                color: 'rgba(255, 255, 255, 0.1)'
                            },
                            ticks: {
                                color: 'rgba(255, 255, 255, 0.7)'
                            }
                        },
                        x: {
                            grid: {
                                display: false
                            },
                            ticks: {
                                color: 'rgba(255, 255, 255, 0.7)'
                            }
                        }
                    },
                    plugins: {
                        legend: {
                            display: false
                        }
                    }
                }
            });

            // 操作系统风险集中度图表
            const osRiskCtx = document.getElementById('osRiskChart').getContext('2d');
            new Chart(osRiskCtx, {
                type: 'doughnut',
                data: {
                    labels: ['CentOS Linux 8.2.2004', 'Windows 8系统', '其他'],
                    datasets: [{
                        data: [73.8, 18.9, 7.3],
                        backgroundColor: [
                            'rgba(255, 99, 132, 0.7)',
                            'rgba(54, 162, 235, 0.7)',
                            'rgba(153, 102, 255, 0.7)'
                        ],
                        borderColor: [
                            'rgb(255, 99, 132)',
                            'rgb(54, 162, 235)',
                            'rgb(153, 102, 255)'
                        ],
                        borderWidth: 1
                    }]
                },
                options: {
                    responsive: true,
                    maintainAspectRatio: false,
                    plugins: {
                        legend: {
                            position: 'bottom',
                            labels: {
                                color: 'rgba(255, 255, 255, 0.7)'
                            }
                        }
                    }
                }
            });

            // 攻击类型分布图表
            const attackTypesCtx = document.getElementById('attackTypesChart').getContext('2d');
            new Chart(attackTypesCtx, {
                type: 'bar',
                data: {
                    labels: ['T1548', 'T1548.002', 'T1053', 'T1218'],
                    datasets: [{
                        label: '命中次数',
                        data: [1582, 129, 256, 164],
                        backgroundColor: [
                            'rgba(255, 99, 132, 0.7)',
                            'rgba(255, 159, 64, 0.7)',
                            'rgba(54, 162, 235, 0.7)',
                            'rgba(75, 192, 192, 0.7)'
                        ],
                        borderColor: [
                            'rgb(255, 99, 132)',
                            'rgb(255, 159, 64)',
                            'rgb(54, 162, 235)',
                            'rgb(75, 192, 192)'
                        ],
                        borderWidth: 1
                    }]
                },
                options: {
                    responsive: true,
                    maintainAspectRatio: false,
                    scales: {
                        y: {
                            beginAtZero: true,
                            grid: {
                                color: 'rgba(255, 255, 255, 0.1)'
                            },
                            ticks: {
                                color: 'rgba(255, 255, 255, 0.7)'
                            }
                        },
                        x: {
                            grid: {
                                display: false
                            },
                            ticks: {
                                color: 'rgba(255, 255, 255, 0.7)'
                            }
                        }
                    },
                    plugins: {
                        legend: {
                            display: false
                        }
                    }
                }
            });

            // 攻击量时间趋势图表
            const attackTrendCtx = document.getElementById('attackTrendChart').getContext('2d');
            new Chart(attackTrendCtx, {
                type: 'line',
                data: {
                    labels: ['5月10日', '5月11日', '5月12日', '5月13日', '5月14日', '5月15日(预测)'],
                    datasets: [{
                        label: '攻击量',
                        data: [44, 64, 70, 605, 1086, 1738],
                        borderColor: 'rgb(54, 162, 235)',
                        backgroundColor: 'rgba(54, 162, 235, 0.1)',
                        tension: 0.3,
                        fill: true,
                        borderWidth: 2,
                        pointBackgroundColor: 'rgb(54, 162, 235)',
                        pointRadius: 4,
                        pointHoverRadius: 6
                    }]
                },
                options: {
                    responsive: true,
                    maintainAspectRatio: false,
                    scales: {
                        y: {
                            beginAtZero: true,
                            grid: {
                                color: 'rgba(255, 255, 255, 0.1)'
                            },
                            ticks: {
                                color: 'rgba(255, 255, 255, 0.7)'
                            }
                        },
                        x: {
                            grid: {
                                color: 'rgba(255, 255, 255, 0.1)'
                            },
                            ticks: {
                                color: 'rgba(255, 255, 255, 0.7)'
                            }
                        }
                    },
                    plugins: {
                        tooltip: {
                            mode: 'index',
                            intersect: false,
                            backgroundColor: 'rgba(9, 22, 47, 0.9)',
                            borderColor: 'rgba(27, 100, 170, 0.7)',
                            borderWidth: 1,
                            titleColor: '#129BFF',
                            bodyColor: '#E9EAEC',
                            padding: 10,
                            cornerRadius: 4
                        }
                    }
                }
            });
        });
    </script>
</body>
</html>
    